<?php

 /**
  * @package JooS
  * @subpackage Syntax
  */

  require_once "JooS/Syntax/Simple.php";

 /**
  * character ::= ? [a-zA-Z] ?;
  **/
  class JooS_Syntax_Simple_Character extends JooS_Syntax_Simple {
    /**
     * @return bool
     */
    protected function checkChars() {
      if (parent::checkChars()) {
        $ord = ord($this->getChars());
        if (($ord >= 97 && $ord <= 122) || ($ord >= 65 && $ord <= 90))
          return true;
      }
      return false;
    }
  }
